package com.dozen.share;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * @author: Dozen
 * @description:
 * @time: 2022/3/28
 */
public class UrlAdapter extends BaseQuickAdapter<UrlBean, BaseViewHolder> {

    public UrlAdapter(@Nullable List<UrlBean> data) {
        super(R.layout.adapter_url_view, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, UrlBean urlBean) {

        baseViewHolder.setText(R.id.url_view_name, urlBean.getName());

    }
}
